package com.bit.book.controller;

import com.bit.book.model.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/test")
@RestController
public class TestController {
    @RequestMapping("/t1")
    public String t1(){
        int a = 10/0;
        return "t1";
    }
    @RequestMapping("/t2")
    public Integer t2(){
        String aa = null;
        System.out.println(aa.length());
        return 2;
    }
    @RequestMapping("/t3")
    public Boolean t3(){
        Integer[] ints = {1,2,3};
        System.out.println(ints[3]);
        return true;
    }



}
